<p-messages [(value)]="msg"></p-messages>
<div class="content-section implementation GridDemo" id="MalfunctionProcess" >
    <div class="title col-sm-12">
        <div class="col-sm-1">
            <span>处理故障单</span>
        </div>
        <div class="col-sm-11 pull-right">
            <button type="button"
                    class="pull-right"
                    pButton
                   (click)="goBack()"
                    icon="fa-close"
                    style="width: 30px"></button>
        </div>
    </div>
    <form class="form-horizontal">
        <app-base-view></app-base-view>
        <app-simple-view></app-simple-view>
        <app-simple-time></app-simple-time>
        <div class="form-group ">
            <div class="col-sm-12 ui-no-padding-left-15px ui-no-padding-right-15px">
                <button class="pull-right ui-margin-right-10px" pButton type="button" (click)="turn()" label="转派" [disabled]="hadSaved"></button>
                <button class="pull-right ui-margin-right-10px" pButton type="button" (click)="up()" label="升级" [disabled]="hadSaved"></button>
                <button class="pull-right ui-margin-right-10px" pButton type="button"  label="分配工作单" [disabled]="hadSaved"></button>
                <button class="pull-right ui-margin-right-10px" pButton type="button" (click)="deal()" label="处理" [disabled]="hadSaved"></button>
            </div>

        </div>
    </form>
    <p-dialog header="{{ dialogHeader }}" [(visible)]="departementDisplay" modal="modal" width="300" [responsive]="true">
        <p-tree [value]="filesTree4"
                selectionMode="{{ selectedMode }}"
                [(selection)]="selected"
                (onNodeExpand)="nodeExpand($event)"
                (onNodeSelect)="nodeSelect($event)"
        ></p-tree>
        <!--<div>Selected Nodes: <span *ngFor="let file of selected">{{file.label}} </span></div>-->
        <div style="margin-top:8px">Selected Node: {{selected ? selected.label : 'none'}}</div>
        <p-footer>
            <button type="button" pButton icon="fa-check" (click)="closeTreeDialog()" label="确定"></button>
            <button type="button" pButton icon="fa-close" (click)="departementDisplay=false" label="取消"></button>
        </p-footer>
    </p-dialog>
    <p-growl [(value)]="message"></p-growl>
</div>
